package com.future.lock.me.order.entity.response;

import com.future.lock.common.http.response.HttpResponse;
import com.future.lock.me.order.entity.bean.OrderDetailsBean;
import com.future.lock.me.order.utils.JSONUtil;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by yzh on 2017/12/17.
 */

public class OrderDetailsInfoResponse extends HttpResponse {

    public OrderDetailsBean data;

    @Override
    protected void parseData(String dataString) throws JSONException {
        try {
            data = JSONUtil.parseJSONObject(new JSONObject(dataString), OrderDetailsBean.class);
        }
        catch (Exception e) {
            e.printStackTrace();
            data = null;
        }

    }
}
